@(user: Account)(adminUser : Boolean = false)(mwroot: MenuWrapper)(content: Html)

<!DOCTYPE html>

<html>
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
        <title>bbs</title>
        
        <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/bootstrap.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/bootstrap-theme.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/bootstrap-editable.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/fuelux.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/main2.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/jquery.dataTables.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/demo_page.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/demo_table.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/themes/base/jquery-ui.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/themes/smoothness/jquery-ui-1.7.2.custom.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/demo_validation.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/jquery.navgoco.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/jquery-ui-timepicker-addon.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/ColVis.css")">
        <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/TableTools.css")">
    
        
        <!-- Thirt-Party Libraries (Order matters) -->
        <!-- <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery-1.11.0.js")"></script> -->
        <!-- <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery-migrate-1.2.1.js")"></script> -->
        <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery-1.7.2.js")"></script>
        
        <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery.dataTables.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/bootstrap.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/require.js")"></script>
        <!-- <script type="text/javascript" src="@routes.Assets.at("javascripts/bootstrap-editable.js")"></script> -->
        <!-- <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery-play-1.7.1.js")"></script>  -->
        <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery-ui-1.8.7.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery-ui-timepicker-addon.js")"></script>

       
        <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery.jeditable.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery.validate.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery.dataTables.editable.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery.jeditable.datepicker.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery.jeditable.datetimepicker.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery.jeditable.image.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery.dataTables.columnFilter.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/ColVis.min.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/ZeroClipboard.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/TableTools.js")"></script>
         
        
        <script type="text/javascript" src="@routes.Assets.at("javascripts/underscore.1.5.2.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/backbone.1.1.0.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/backbone-validation.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/backbone-relational.js")"></script>

        <script type="text/javascript" src="@routes.Assets.at("javascripts/backbone.babysitter.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/backbone.wreqr.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/backbone.marionette.js")"></script>
        
        <script type="text/javascript" src="@routes.Assets.at("javascripts/formDialog.js")"></script>
        
        <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery.navgoco.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/left_menu.js")"></script>
        
    
        <!-- Application core (Order matters) -->
        <script type="text/javascript" src="@routes.Assets.at("javascripts/app.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/app.mytable.js")"></script>
        <script type="text/javascript" src="@routes.Assets.at("javascripts/app.users.js")"></script>

<!-- auto insert after this -->

<script type="text/javascript" src="@routes.Assets.at("javascripts/app.accounts.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.roles.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.account_roles.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.menus.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.permissions.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.role_menu_permissions.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.userlogs.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.vehicles.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.staffs.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.drivers.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.customers.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.insurances.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.repairrequests.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.repairs.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.part_purchases.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.part_consumes.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.safety_checks.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.violation_records.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.run_cards.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.driver_evaluations.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.driver_trainings.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.beforework_trains.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.check_works.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.accidents.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.bookings.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.dispatchs.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.dailysalarys.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.checkouts.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.income_moneys.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.bills.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.add_oil1s.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.add_oil2s.js")"></script>
<!-- auto insert before this -->
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.statistic.main.js")"></script>
<script type="text/javascript" src="@routes.Assets.at("javascripts/app.statistic.vehicle.js")"></script>

       
    </head>
    <body>
    
<script id="model_table_template" type="text/html">
    <div class="container-fluid">
        <div class="table_body row-fluid">
            <table cellpadding="0" cellspacing="0" border="0" class="display" id="table_model">
            </table>
        </div>
    </div>
</script>

<script id="model_search_view" type="text/html">
<div class="accordion" id="accordion2">
    <div class="accordion-group">
        <div class="accordion-heading row-fluid">
            <% if(showSearch){%>
            <button class="btn" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
                详细搜索
            </button>
            <% } %>
            <% if(showAdd){%>
            <a href="#AddRecord" class="btn " data-toggle="modal">
                增加记录
            </a>
            <% } %>
            <% if(showDelete){%>
            <button class="btn " id="btnDeleteModel" >
                删除记录
            </button> 
            <% } %>
        </div>

        <div id="AddRecord" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">新增-<%=  title %></h3>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" method="post" id="formAddNewRowModel" action="#" title="新增-<%=  title %>">
                    <% _.each(aoColums, function(cl, index) {%> 
                        <div class="control-group" <% if(!cl.editable) { %>  style="display:none" <% }%> >
                        <span <% if(!cl.editable) { %>  style="display:none" <% }%> >
                            <label for="<%= cl.mData %>" class="control-label"><%= cl.sTitle %></label>
                            <div class="controls">
                                <% if(cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "select") { %>
                                    <select name="<%= cl.mData %>" id="<%= cl.mData %>" rel="<%= index %>" value="<%= cl.default_value %>" cl_type="<%= cl.type %>" co_connected_fields_in_this="<%= cl.co_connected_fields_in_this %>" co_table="<%= cl.co_table %>" co_primary_field_in_cotable="<%= cl.co_primary_field_in_cotable %>" co_connected_fields_in_cotable="<%= cl.co_connected_fields_in_cotable %>">
                                        <% _.each(jQuery.parseJSON(cl.editable_settings.data), function(value, key) { %>
                                           <option value="<%= key %>"><%= value %></option>
                                        <% }); %>
                                    </select>
                                    <span class="help-block hidden"></span>
                                    <span id="loader<%= index %>" class="loader">Loading</span>
                                <% } else if (cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "datepicker") { %>
                                    <input type="text" class="form-control datepicker" id="new_form_<%= cl.mData %>" name="<%= cl.mData %>" rel="<%= index %>" value="<%= cl.default_value %>"/>
                                    <span class="help-block hidden"></span>
                                <% } else if (cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "datetimepicker") { %>
                                    <input type="text" class="form-control datetimepicker" id="new_form_<%= cl.mData %>" name="<%= cl.mData %>" rel="<%= index %>" value="<%= cl.default_value %>"/>
                                    <span class="help-block hidden"></span> 
                                 <% } else if (cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "image") { %>
                                    <input type="text" style="display:none" class="form-control forimage" id="new_form_<%= cl.mData %>" name="<%= cl.mData %>" rel="<%= index %>" value="<%= cl.default_value %>" placeholder="请点击选择文件然后上传图片"/>
                                    <img src="#" class="form-control image"/>
                                    <span class="help-block hidden"></span> 
                                <% } else { %>
                                    <input type="text" class="form-control" id="<%= cl.mData %>" name="<%= cl.mData %>" rel="<%= index %>" value="<%= cl.default_value %>"/>
                                    <span class="help-block hidden"></span> 
                                <% } %>
                            </div>
                        </span>
                        </div>
                    <% }); %>
                </form>
                
                <form class="form-horizontal" enctype="multipart/form-data" method="post" id="uploadFileForm" action="/pic/upload" target="">
                    <% _.each(aoColums, function(cl, index) {%> 
                        <% if (cl.editable && cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "image") { %>
                            <!-- label for="<%= cl.mData %>" class="control-label"><%= cl.sTitle %></label -->
                            <div class="controls">
                                <input type="file" id="<%= cl.mData %>" name="picture"></input>
                                <button id="uploadfileButton" class="btn" type="submit">上传</input>
                                <span class="help-block hidden"></span> 
                            </div>
                         <% } %>
                    <% }); %>
                </form>
            </div>
            <div class="modal-footer">
                <button class="btn" id="newModelCancelButton"  data-dismiss="modal" aria-hidden="true">关闭</button>
                <button class="btn btn-primary" id="newModelOKButton">提交</button>
            </div>
        </div>

        <div id="collapseOne" class="accordion-body collapse">
            <div class="accordion-inner">
                <form class="form-horizontal" method="post" id="searchForm">
                        <% _.each(aoColums, function(cl, index) {%> 
                            <% if(cl.isSearch) { %>                           
                                <div class="control-group" id="control-group-<% %>">
                                    <label for="<%= cl.mData %>" class="control-label"><%= cl.sTitle %></label> 
                                    <div class="controls">
                                    <span class='search_item_content'>
                                    <% if(cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "select") { %>
                                            <% if(cl.search_type && cl.search_type == 'TWOBOX') { %>
                                            <% } else { %>
                                                <select class="form-control" id="search_<%= cl.mData %>" cl_type="<%= cl.type %>" rel="<%= index %>" >
                                                    <% _.each(jQuery.parseJSON(cl.editable_settings.data), function(value, key) { %>
                                                        <option value=<%= key %> ><%= value %></option>
                                                    <% }); %>   
                                                </select>
                                            <% } %>
                                    <% } else if(cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "combobox") { %>
                                            <% if(cl.search_type && cl.search_type == 'TWOBOX') { %>
                                            <% } else { %>
                                                    <div id="myCombobox" class="input-append dropdown combobox">
                                                        <input class="form-control" type="text" id="search_<%= cl.mData %>" cl_type="<%= cl.type %>" rel="<%= index %>">
                                                        <button type="button" class="btn" data-toggle="dropdown"><i class="caret"></i></button>
                                                        <ul class="dropdown-menu">
                                                            <% _.each(jQuery.parseJSON(cl.editable_settings.data), function(value, key) { %>
                                                                <li><a href="#"><%= value %></a></li>
                                                            <% }); %>
                                                        </ul>
                                                    </div>
                                            <% } %>
                                    <% } else if (cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "datepicker") { %>
                                            <% if(cl.search_type && cl.search_type == 'TWOBOX') { %>
                                                <input type="text" class="form-control datepicker" id="search_<%= cl.mData %>_from" name="<%= cl.mData %>_from" cl_type="<%= cl.type %>" rel="<%= index %>"  placeholder="开始日期"/>
                                                <input type="text" class="form-control datepicker" id="search_<%= cl.mData %>_to" name="<%= cl.mData %>_to" cl_type="<%= cl.type %>" rel="<%= index %>" placeholder="结束日期"/>
                                            <% } else { %>
                                                <input type="text" class="form-control datepicker" id="search_<%= cl.mData %>" name="<%= cl.mData %>_from" cl_type="<%= cl.type %>" rel="<%= index %>"  placeholder="输入日期"/>
                                            <% } %>
                                    <% } else if (cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "datetimepicker") { %>
                                            <% if(cl.search_type && cl.search_type == 'TWOBOX') { %>
                                                <input type="text" class="form-control datetimepicker" id="search_<%= cl.mData %>_from" name="<%= cl.mData %>" cl_type="<%= cl.type %>" rel="<%= index %>" placeholder="开始时间"/>
                                                <input type="text" class="form-control datetimepicker" id="search_<%= cl.mData %>_to" name="<%= cl.mData %>" cl_type="<%= cl.type %>" rel="<%= index %>" placeholder="结束时间" />
                                            <% } else { %>
                                                <input type="text" class="form-control datetimepicker" id="search_<%= cl.mData %>" name="<%= cl.mData %>" cl_type="<%= cl.type %>" rel="<%= index %>" placeholder="输入时间"/>
                                            <% } %>
                                    <% } else { %>
                                            <% if(cl.search_type && cl.search_type == 'TWOBOX') { %>
                                                <input type="text" class="form-control" id="<%= cl.mData %>_from" name="<%= cl.mData %>" rel="<%= index %>" cl_type="<%= cl.type %>" placeholder="起始值"/>
                                                <input type="text" class="form-control" id="<%= cl.mData %>_to" name="<%= cl.mData %>" rel="<%= index %>" cl_type="<%= cl.type %>" placeholder="末尾值"/>
                                            <% } else { %>
                                                <input type="text" class="form-control" id="<%= cl.mData %>" name="<%= cl.mData %>" cl_type="<%= cl.type %>" rel="<%= index %>"/>
                                            <% } %>
                                    <% } %>
                                </span>
                                </div>
                               </div>
                            <% }%>
                        <% }); %>
                        <div class="control-group">
                            <div class="span2"></div>
                            <div class="span2">
                                <button type="submit" id="searchModelButton" class="btn">搜索</button>
                            </div>
                            <div class="span2">
                                <button type="button" id="searchCancelButton" class="btn">取消</button>
                            </div>
                            <div class="span4"></div>
                        </div>
                </form>
            </div>
        </div>
        
    </div>
</div>

<% if(showSearch){%>
<div id="quick_search" class="row-fluid">
    <% var hasQuickSearchItem = false; %>
    <form class="form-inline" method="post" id="searchForm">
        <% _.each(aoColums, function(cl, index) {%> 
            <% if(cl.isQuickSearch) { hasQuickSearchItem = true; %>                           
                <label class="control-label"><%= cl.sTitle %></label> 
                    <span class='search_item_content'>
                    <% if(cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "select") { %>
                        <% if(cl.search_type && cl.search_type == 'TWOBOX') { %>
                        <% } else { %>
                            <select class="form-control input-small" id="search_<%= cl.mData %>" cl_type="<%= cl.type %>" rel="<%= index %>" >
                            <% _.each(jQuery.parseJSON(cl.editable_settings.data), function(value, key) { %>
                                <option value=<%= key %> ><%= value %></option>
                            <% }); %>   
                            </select>
                        <% } %>
                    <% } else if(cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "combobox") { %>
                        <% if(cl.search_type && cl.search_type == 'TWOBOX') { %>
                        <% } else { %>
                            <div id="myCombobox" class="input-append dropdown combobox input-small">
                            <input class="form-control input-small" type="text" id="search_<%= cl.mData %>" cl_type="<%= cl.type %>" rel="<%= index %>">
                            <button type="button" class="btn" data-toggle="dropdown"><i class="caret"></i></button>
                            <ul class="dropdown-menu">
                                <% _.each(jQuery.parseJSON(cl.editable_settings.data), function(value, key) { %>
                                <li><a href="#"><%= value %></a></li>
                                <% }); %>
                            </ul>
                            </div>
                        <% } %>
                    <% } else if (cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "datepicker") { %>
                        <% if(cl.search_type && cl.search_type == 'TWOBOX') { %>
                            <input type="text" class="form-control datepicker input-small" id="search_<%= cl.mData %>_from" name="<%= cl.mData %>_from" cl_type="<%= cl.type %>" rel="<%= index %>"  placeholder="开始日期"/>
                            <input type="text" class="form-control datepicker input-small" id="search_<%= cl.mData %>_to" name="<%= cl.mData %>_to" cl_type="<%= cl.type %>" rel="<%= index %>" placeholder="结束日期"/>
                        <% } else { %>
                            <input type="text" class="form-control datepicker input-small" id="search_<%= cl.mData %>" name="<%= cl.mData %>_from" cl_type="<%= cl.type %>" rel="<%= index %>"  placeholder="输入日期"/>
                        <% } %>
                    <% } else if (cl.editable_settings && cl.editable_settings.type && cl.editable_settings.type == "datetimepicker") { %>
                        <% if(cl.search_type && cl.search_type == 'TWOBOX') { %>
                            <input type="text" class="form-control datetimepicker input-small" id="search_<%= cl.mData %>_from" name="<%= cl.mData %>" cl_type="<%= cl.type %>" rel="<%= index %>" placeholder="开始时间"/>
                            <input type="text" class="form-control datetimepicker input-small" id="search_<%= cl.mData %>_to" name="<%= cl.mData %>" cl_type="<%= cl.type %>" rel="<%= index %>" placeholder="结束时间" />
                        <% } else { %>
                            <input type="text" class="form-control datetimepicker input-small" id="search_<%= cl.mData %>" name="<%= cl.mData %>" cl_type="<%= cl.type %>" rel="<%= index %>" placeholder="输入时间"/>
                        <% } %>
                    <% } else { %>
                        <% if(cl.search_type && cl.search_type == 'TWOBOX') { %>
                            <input type="text" class="form-control input-small" id="<%= cl.mData %>_from" name="<%= cl.mData %>" rel="<%= index %>" cl_type="<%= cl.type %>" placeholder="起始值"/>
                            <input type="text" class="form-control input-small" id="<%= cl.mData %>_to" name="<%= cl.mData %>" rel="<%= index %>" cl_type="<%= cl.type %>" placeholder="末尾值"/>
                        <% } else { %>
                            <input type="text" class="form-control input-small" id="<%= cl.mData %>" name="<%= cl.mData %>" cl_type="<%= cl.type %>" rel="<%= index %>"/>
                        <% } %>
                    <% } %>
                    </span>
                <% }%>
            <% }); %>
        <% if (hasQuickSearchItem) { %>
        <button type="submit" id="quick_search_btn" class="btn">搜索</button>
        <% } %>
    </form>
</div>
<% } %>
</script>


<script id="table_title_template" type="text/html">
 <h2 id='title'> <%= title %> </h2>
</script>

<script id="detail_view_template" type="text/html">
    <div id="dynamic">
        <table cellpadding="0" cellspacing="0" border="0" class="display" id="detail_table_<%= table_id %>">
        </table>
    </div>
</script>

<script id="model_main_layout" type="text/html"> 
        <div class="row-fluid">
            <div class="span12" id='table_title'>
            </div>
        </div>
        
        <div class="row-fluid">
            <div class="span12" id = "model_table">
            </div>
        </div>
</script>

<script id="schedule_status_template" type="text/html">
    <li>在维修车辆数
        <ul>
            <li>今日计划出车: <%= scheduledVehiclesToday %></li>
            <li>今日未出车数: <%= unscheduleVehiclesToday %></li>
            <li>今日出车率: <%= scheduledRateToday %></li>
            <li>当月计划出车数: <%= scheduledVehiclesMonth %></li>
            <li>当月未出车数: <%= unscheduledVehiclesMonth %></li>
            <li>当月出车率: <%= scheduledRateMonth %></li>
        </ul>
    </li>
    <li>营收状况
        <ul>
            <li>当月营收数（元）: <%= incomingThisMonth %></li>
            <li>当月完成营收率: <%= incomingRate %></li>
            <li> </li>
        </ul>
    </li>
    <li>安全行车
        <ul>
            <li>昨天事故数: <%= incidentYesterday %></li>
            <li>当月事故总计: <%= incidentThisMonth %></li>
        </ul>
    </li>
    <li>油耗
        <ul>
            <li>昨天加油数: <%= oilAddYesterday %></li>
            <li>昨天平均油耗: <%= oilConsumeYesterday %></li>
            <li>月平均油耗: <%= oilConsumeThisMonth %></li>
            <li>行业月平均油耗<%= oilIndustry %></li>
        </ul>
    </li>
</script>

<script id="statistic_main_layout" type="text/html">
    <div class="row-fluid">
        <div class="span12" id="schedule_status">
        </div>
    </div>
</script>

<script id="vehicle_status_template" type="text/html">
    <li> <a src="#" id="onRepair">在维修车辆数: <%= vehicle_status.onRepair %> </a> </li>
    <li><a> 本周将维修车辆数: <%= vehicle_status.repairThisWeek %> </a> </li>
    <li><a> 过期维修车辆数: <%= vehicle_status.repaired %> </a> </li>
    <li> <a> 本周公安验车数:<%= vehicle_status.policeCheck %> </a> </li>
    <li> <a> 本周运管验车数:<%= vehicle_status.opCheck %> </a> </li>
    <li> <a> 超期未验车数:<%= vehicle_status.outofTime %> </a> </li>
</script>


<script id="notice_template" type="text/html">
    <li>今日安检通知</li>
    <ul>
        <% _.each(safecheck_notices, function(cl, index) {%> 
        <li><%= cl %></li>
        <% }); %>
    </ul>
</script>

<script id="statistic_vehicle_layout" type="text/html">
    <div class="row-fluid">
        <div class="span6" id="vehicle_status">
        </div>
        <div class="span6" id="safecheck_notice">
        </div>
    </div>
    <div class="row-fluid">
        <div class="span12" id="vehicle_detail">
        </div>
    </div>
</script>

    
    
        <div class="container-fluid" id="main_layout">
            <div class="row-fluid" style="margin-top: 30px; margin-left: 0px; margin-right: 0px">
                <div class="span2" style="margin-top: 30px; padding-right:0px; margin-right:0px" id="col_menu">
                    @leftsidebar(user)(adminUser)(mwroot)
                </div>
                
                <div class="span10" style="margin-top: 0px; margin-left: 10px; margin-right: 0px" id="main">
                      @content
                </div>
                
                <div style="position: absolute; top: 0px; left:10px; top: 70px; width: 20px; z-index:1; display:none" id="col_menu_bt">
                    <a href="#" style="color: #419641;font-size:12px" id="show_menu">显示菜单</a>
                </div>
            </div>
        </div>
        
    </body>
</html>
